#include "gloucester10.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 Gloucester10_glyphdata[261] = {
/* '!' */	0xFD00,
/* '"' */	0xB680,0x0000,0x0000,
/* '#' */	0x52BE,0xAA7E,0x9400,0x0000,
/* '$' */	0x5FE4,0xDFE8,0x0000,
/* '%' */	0xE6AA,0xBC1C,0xD357,0x0000,0x0000,
/* '&' */	0x7564,0x7AAD,0x0000,
/* ''' */	0xE000,
/* '(' */	0x6AAA,0x9000,
/* ')' */	0xA555,0xA000,
/* '*' */	0x06D4,0x0000,0x0000,
/* '+' */	0x0109,0xF210,0x0000,0x0000,
/* ',' */	0x0180,
/* '-' */	0x0030,0x0000,
/* '.' */	0x0100,
/* '/' */	0x2524,0xA400,0x0000,
/* '0' */	0x56DB,0x6A00,0x0000,
/* '1' */	0xC924,0x9700,0x0000,
/* '2' */	0xF494,0xA700,0x0000,
/* '3' */	0xF4A2,0x6E00,0x0000,
/* '4' */	0x2266,0xAF22,0x0000,
/* '5' */	0xF272,0x6E00,0x0000,
/* '6' */	0x767B,0x6A00,0x0000,
/* '7' */	0xF4A4,0x9200,0x0000,
/* '8' */	0x56AB,0x6B00,0x0000,
/* '9' */	0x56DE,0x6E00,0x0000,
/* ':' */	0x1100,
/* ';' */	0x1180,
/* '<' */	0x0168,0x6100,0x0000,
/* '=' */	0x00F0,0xF000,0x0000,
/* '>' */	0x0861,0x6800,0x0000,
/* '?' */	0xF4B4,0x8200,0x0000,
/* '@' */	0x3919,0xEBAE,0xE81E,0x0000,0x0000,
/* 'A' */	0x2225,0x5799,0x0000,
/* 'B' */	0xE99E,0x999E,0x0000,
/* 'C' */	0x7649,0x2B00,0x0000,
/* 'D' */	0xEB99,0x999E,0x0000,
/* 'E' */	0xF669,0x2F00,0x0000,
/* 'F' */	0xF669,0x2400,0x0000,
/* 'G' */	0x7988,0x8B97,0x0000,
/* 'H' */	0x999F,0x9999,0x0000,
/* 'I' */	0xFF00,
/* 'J' */	0x2492,0x6E00,0x0000,
/* 'K' */	0xBACC,0xCAAB,0x0000,
/* 'L' */	0x9249,0x2F00,0x0000,
/* 'M' */	0xDD6B,0x5AD6,0xB500,0x0000,
/* 'N' */	0x9DDB,0xBB99,0x0000,
/* 'O' */	0x6999,0x9996,0x0000,
/* 'P' */	0xD6E9,0x2400,0x0000,
/* 'Q' */	0x6999,0x9996,0x3000,
/* 'R' */	0xE4A5,0xC94A,0x5100,0x0000,
/* 'S' */	0xF626,0x6E00,0x0000,
/* 'T' */	0xE924,0x9200,0x0000,
/* 'U' */	0x9999,0x9996,0x0000,
/* 'V' */	0xD555,0x5622,0x0000,
/* 'W' */	0xAD6B,0x5EA9,0x4A00,0x0000,
/* 'X' */	0xDA94,0x4229,0x5B00,0x0000,
/* 'Y' */	0xBAA4,0x4444,0x0000,
/* 'Z' */	0xF525,0x2F00,0x0000,
/* '[' */	0xEAAA,0xB000,
/* '\' */	0xAA55,0x0000,
/* ']' */	0xD555,0x7000,
/* '^' */	0x22A2,0x0000,0x0000,0x0000,
/* '_' */	0x0000,0x001C,0x0000,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x000E,0x26AD,0x0000,
/* 'b' */	0x927B,0x6F00,0x0000,
/* 'c' */	0x03AB,0x0000,
/* 'd' */	0x64FB,0x6F00,0x0000,
/* 'e' */	0x003B,0xE300,0x0000,
/* 'f' */	0x6BAA,0x0000,
/* 'g' */	0x007B,0xE73C,0x0000,
/* 'h' */	0x927B,0x6D00,0x0000,
/* 'i' */	0x9F00,
/* 'j' */	0x9FC0,
/* 'k' */	0x888B,0xCAAB,0x0000,
/* 'l' */	0xFF00,
/* 'm' */	0x0001,0xFAD6,0xB500,0x0000,
/* 'n' */	0x007B,0x6D00,0x0000,
/* 'o' */	0x007B,0x6F00,0x0000,
/* 'p' */	0x007B,0x6F90,0x0000,
/* 'q' */	0x007B,0x6F24,0x0000,
/* 'r' */	0x03AA,0x0000,
/* 's' */	0x03B7,0x0000,
/* 't' */	0x2BAB,0x0000,
/* 'u' */	0x005B,0x6F00,0x0000,
/* 'v' */	0x005B,0x5200,0x0000,
/* 'w' */	0x0001,0x5AF9,0x4A00,0x0000,
/* 'x' */	0x0054,0x9500,0x0000,
/* 'y' */	0x005B,0x5258,0x0000,
/* 'z' */	0x037B,0x0000,
/* '{' */	0x5595,0x4000,
/* '|' */	0xFFC0,
/* '}' */	0xAA6A,0x8000,
/* '~' */	0x000D,0xB000,0x0000,
/* 0x7F */	0x0F99,0x999F,0x0000,
};

static const u16 Gloucester10_offset[95] = {
    0,    1,    4,    8,   11,   16,   19,   20,   22,   24,   27,   31,   32,   34,   35,   38,
   41,   44,   47,   50,   53,   56,   59,   62,   65,   68,   69,   70,   73,   76,   79,   82,
   87,   90,   93,   96,   99,  102,  105,  108,  111,  112,  115,  118,  121,  125,  128,  131,
  134,  137,  141,  144,  147,  150,  153,  157,  161,  164,  167,  169,  171,  173,  177,  180,
  182,  185,  188,  190,  193,  196,  198,  201,  204,  205,  206,  209,  210,  214,  217,  220,
  223,  226,  228,  230,  232,  235,  238,  242,  245,  248,  250,  252,  253,  255,  258
};

static const u8 Gloucester10_width[95] = {
 1, 3, 5, 3, 6, 4, 1, 2, 2, 4, 5, 1, 2, 1, 3, 3,
 3, 3, 3, 4, 3, 3, 3, 3, 3, 1, 1, 4, 4, 4, 3, 6,
 4, 4, 3, 4, 3, 3, 4, 4, 1, 3, 4, 3, 5, 4, 4, 3,
 4, 5, 3, 3, 4, 4, 5, 5, 4, 3, 2, 2, 2, 5, 3, 2,
 4, 3, 2, 3, 3, 2, 3, 3, 1, 1, 4, 1, 5, 3, 3, 3,
 3, 2, 2, 2, 3, 3, 5, 3, 3, 2, 2, 1, 2, 4, 4
};

Gloucester10::Gloucester10(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	Gloucester10_glyphdata,
	Gloucester10_offset,
	Gloucester10_width,
	12,
	3,
	7,
	6
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
